import type { IPage } from '@/types'
import request from '@/utils/https'

export function getListByPage(data: IPage) {
  return request<any[]>({
    url: '/myScoreDetail',
    method: 'post',
    data
  })
}

export const CATEGORY_MAP = {
  1: '给别人点赞',
  2: '给别人评论',
  4: '阅读科普文章',
  5: '科普问题回答正确',
  6: '填写健康日报',
  7: '完成艺术作业和分享',
  10: '功能评测',
  11: '反应训练'
}
